Skip to main content

Append Zip File

AutomatR.DefaultActivities.FileAndFolder.AppendZipFile

The "Append Zip File" activity in AutomatR allows you to add new files or folders to an existing zip file. This is particularly useful when you need to update or extend the content of a zip archive during workflow automation.

Properties

NameDescription
Input
File PathEnter the full path of the file(s) on your local drive, including the filename, which needs to be zipped within the existing zip file. This property is part of the "Input" overload group.
Folder PathEnter the full path of the folder on your local drive that needs to be zipped within the existing zip file. This property is part of the "Input" overload group.
Zip PathEnter the full path of the zip file on your local drive where you want to append new files. This property is required.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Append Zip File" activity. This can be useful for handling synchronization issues. Integer variable or argument containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Append Zip File" activity onto the workflow.
  2. Configure the properties by specifying the zip file path and either the file path or folder path to be appended.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to append the specified files or folder to the existing zip file.

Example: Consider an example where the "Append Zip File" activity is used to add new files and a folder to an existing zip file:

Append Zip File:
Display Name: "Append Files to Archive"
File Path: ["C:\Files\file1.txt", "C:\Files\file2.doc"]
Zip Path: "C:\Archives\archive.zip"

In this example, the activity appends the specified files ("file1.txt" and "file2.doc") to the existing zip file located at "C:\Archives\archive.zip." The operation is performed without direct output, and the updated zip file can be reviewed for the appended content.